package com.ygqh.baby.mapper;

import com.ygqh.baby.ao.FocusType;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.model.YgFocusModel;
import com.ygqh.baby.po.YgFocus;
import com.ygqh.baby.po.YgFocusExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface YgFocusMapper {
    int countByExample(YgFocusExample example);

    int deleteByExample(YgFocusExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgFocus record);

    int insertSelective(YgFocus record);

    List<YgFocus> selectByExample(YgFocusExample example);

    YgFocus selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgFocus record, @Param("example") YgFocusExample example);

    int updateByExample(@Param("record") YgFocus record, @Param("example") YgFocusExample example);

    int updateByPrimaryKeySelective(YgFocus record);

    int updateByPrimaryKey(YgFocus record);

    int countSuper(@Param("q") String q, @Param("focusType") String focusType, @Param("pageKey") String pageKey);

    List<YgFocus> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q, @Param("focusType") String focusType, @Param("pageKey") String pageKey);

    List<YgFocusModel> selectModelSuper(@Param("focusType") String focusType, @Param("currentDate") Date currentDate, @Param("pageKey") String pageKey);

    List<YgFocusModel> selectYiJiaDianModel(@Param("focusType") FocusType focus, @Param("currentDate") Date currentDate);


}



